﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Sbook.Data;

namespace Sbook.Business
{
    public class NewsGroupService
    {
        private static NewsGroupController db = new NewsGroupController();
        #region[NewsGroup_GetByAll]
        public static List<NewsGroup> NewsGroup_GetByAll()
        {
            return db.NewsGroup_GetByAll();
        }
        #endregion

        #region[NewsGroup_GetByTop]
        public static List<NewsGroup> NewsGroup_GetByTop(string top,string where,string order)
        {
            return db.NewsGroup_GetByTop(top,where,order);
        }
        #endregion
        #region[NewsGroup_GetById]
        public static List<NewsGroup> NewsGroup_GetById(string Id)
        {
            return db.NewsGroup_GetById(Id);
        }
        #endregion

        #region[NewsGroup_Insert]
        public static bool NewsGroup_Insert(NewsGroup group)
        {
            return db.NewsGroup_Insert(group);
        }
        #endregion

        #region[NewsGroup_Update]
        public static bool NewsGroup_Update(NewsGroup group)
        {
            return db.NewsGroup_Update(group);
        }
        #endregion

        #region[NewsGroup_UpdateStatusById]
        public static bool NewsGroup_UpdateStatusById(string Id, string status)
        {
            return db.NewsGroup_UpdateStatusById(Id, status);
        }
        #endregion
        #region[NewsGroup_DeleteById]
        public static bool NewsGroup_DeleteById(string Id)
        {
            return db.NewsGroup_Delete(Id);
        }
        #endregion
    }
}